Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update datepicker.js #466

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

loveakinlesi
Copy link

Specify the useNativeDriver option explicitly as false on Animated.timing() as required by warning. Refer to Animated doc.

Solving this raises another warning. So rename componentWillReceiveProps to componentDidUpdate as neither componentWillReceiveProps nor UNSAFE_componentWillReceiveProps is not advised by react due to bugs and inconsistencies.

Specify the <code>useNativeDriver</code> option explicitly as <code>false</code> on <code>Animated.timing()</code> as required by warning. Refer to [Animated doc](https://reactnative.dev/docs/animated).

Solving this raises another warning. So rename componentWillReceiveProps to componentDidUpdate as neither [componentWillReceiveProps nor UNSAFE_componentWillReceiveProps is not advised by react due to bugs and inconsistencies](https://reactjs.org/docs/react-component.html#unsafe_componentwillreceiveprops).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant